// <!-- auto generated navs start -->
const autoGenHeaderNavs = [];
const autoGenAsideNavs = [
  { text: '公司管理', to: '/RoleManage', icon: 'nav-list' },
  { text: '角色管理', to: '/RolesManage',icon: 'nav-list' }
];

// <!-- auto generated navs end -->

const customHeaderNavs = [
  {
    text: '首页',
    to: '/',
    icon: 'home',
  },
  {
    text: '反馈',
    to: 'https://github.com/alibaba/ice',
    external: true,
    newWindow: true,
    icon: 'message',
  },
  {
    text: '帮助',
    to: 'https://alibaba.github.io/ice',
    external: true,
    newWindow: true,
    icon: 'bangzhu',
  },
];

const customAsideNavs = [
  {
    text: '首页',
    to: '/',
    icon: 'home',
  },
  {
    text: '用户管理',
    to: '/UserInfo',
    icon: 'yonghu',
  },
  {
    text: '权限管理',
    to: '/Roles', 
    icon: 'key', 
    },

  
  // {
  //   text: '系统设置',
  //   to: '/setting',
  //   icon: 'shezhi',
  //   children: [
  //     {
  //       text: '基本设置',
  //       to: '/base',
  //     }
  //   ],
  // },
];

function transform(navs) {
  // custom logical
  return [...navs];
}

export const headerNavs = transform([
  ...autoGenHeaderNavs,
  ...customHeaderNavs,
]);

export const asideNavs = transform([...customAsideNavs,...autoGenAsideNavs]);
